{% extends "base.html" %}
    {% block control %}<li class="treeview active">{% endblock %}
    {% block upload %}
                            <li class="treeview active">
              <a href="#"><i class="fa fa-television"></i> <span>文件操作</span> <i class="fa fa-angle-left pull-right"></i></a>
              <ul class="treeview-menu">
                    <li class="active"><a href="/upload/"><i class="fa fa-genderless"></i>更新配置</a></li>
                    <li><a href="/getpack/"><i class="fa fa-genderless"></i>文件下载</a></li>
                   <li><a href="/getpack/"><i class="fa fa-genderless"></i>md5校验</a></li>
                    </ul>
                    </li>
    {% endblock %}

      <!-- Content Wrapper. Contains page content -->
             {% block content %}

          <ol class="breadcrumb">
            <li><i class="fa fa-television"></i> 管理中心</li>
            <li class="active">节点列表</li>
          </ol>

        <!-- Main content -->
        <section class="content">

  <form enctype="multipart/form-data" method="POST" action="/upload/">
      {% csrf_token %}
                                          <div class="form-group">
                                 <div class="col-sm-1 control-label">区域列表：</div>
                                 <div class="col-sm-4" >
                                    {% for group in group_list %}
                                        <label><input name="nodegroup" type="radio" value={{ group.id }} />{{ group.nodegroup_name }} </label>
                                     {% endfor %}
                                  </div>
                             </div>
                              <div  style="float: left;clear: left;">
                                {{ form }}
                                 </div>

<div style="float: left;clear: left;">
   <input type="submit" value="上传文件" />
    </div>
</form>

        </section><!-- /.content -->
    {% endblock %}

